package com.hsylient.javase.chapter10;

import cn.hutool.core.util.NumberUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class NumberTest {


    @Test
    public void testSimpleNumberTest() {
        String origin = "123"; // or 123ABC
        boolean isLongType = NumberUtil.isLong(origin);
        log.info("[HuTool工具类-判断字符串是否是长整型] 原字符串[{}] [{}]长整型", origin, isLongType ? "是" : "不是");
        String afterFormatNum = NumberUtil.decimalFormat("###.##################################", 123456L);
        log.info("[HuTool工具类-格式化后的输出] {}", afterFormatNum);
    }
}
